<style lang="scss">
	@import url('../static/css/projectanswerend.css');
</style>
<template>
	<!-- 公共头部 -->
	<view>
		<my-header :title="toptitle"></my-header>
	</view>
	<!-- 骨架 -->
	<uni-skeleton animated :loading="loading"></uni-skeleton>
	<!-- 项目答题结束界面 -->
	<view class="content" v-show='!loading'>
		<view>
			<!-- 内容 -->
			<view class="answerend_top">
				<view class="answerrecord">{{answerrecord}}</view>

				<!-- 阅读 -->
				<view v-show="gradingtype=='reading'">
					<view class="speed">{{headerdata.speed}}</view>
					<view class="wordperminute">{{headerdata.wordperminuteratio}}{{headerdata.wordperminute}}</view>
					<view>{{headerdata.comprehensionrate}}{{headerdata.comprehensionrateatio}}%</view>
					<view class="number">
						<view class="dnumber">
							<view>{{headerdata.numberanswers}}</view>
							<view class="dnumber_number">{{headerdata.numberanswersnumber}}</view>
						</view>
						<view class="dnumber">
							<view>{{headerdata.correctquantity}}</view>
							<view class="dnumber_number">{{headerdata.correctquantitynumber}}</view>
						</view>
					</view>
				</view>
				<!-- 正向运算 -->
				<view v-show="gradingtype=='zxys' ">
					<view class="speed">{{headerdata.goal}}</view>
					<view class="wordperminute">{{list.allscore}}</view>
					<view>{{headerdata.accuracy}}{{headerdata.comprehensionrateatio}}%</view>
					<view class="number">
						<view class="dnumber">
							<view>{{headerdata.numberanswers}}</view>
							<view class="dnumber_number">{{headerdata.numberanswersnumber}}</view>
						</view>
						<view class="dnumber">
							<view>{{headerdata.correctquantity}}</view>
							<view class="dnumber_number">{{headerdata.correctquantitynumber}}</view>
						</view>
						<view class="dnumber">
							<view>{{headerdata.answertime}}</view>
							<view class="dnumber_number">{{list.answertime-1}}s</view>
						</view>
					</view>
				</view>

			</view>

			<view class="answerend_content">
				<view class="answerend_content_title">{{comparisonanswers}}:</view>
				<view class="answer_end_all">

					<view class="answer_end" v-for="(item,index) in list.answer_all">
						<view class="answer_end_title">{{index+1}}、{{item.option_title}}</view>
						<view class="answer_end_tm">
							<view :class="item.user_answer_select==item.answer_select?'success':'error'">
								{{youranswer}}：{{item.user_answer_select?item.user_answer_select:noanswer}}
							</view>
							<view>
								{{correctanswer}}：{{item.answer_select}}
							</view>
						</view>
					</view>
				</view>

			</view>
		</view>
		<view v-show="gradingtype=='reading'">
			<view class="keepTraining" @click="keepTraining()">
				<view>{{langs.keepTraining}}</view>
			</view>
		</view>
		<view>
			<Tabbar :current="'2'"></Tabbar>
		</view>
	</view>

</template>
<script type="module" src="../static/js/projectanswerend.js"></script>